package com.tian.mapper;


import com.tian.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface UserMapper {

    void save(User user);

    //在mybatis中传递多个参数需要参数的绑定
    User login(@Param("username") String username,
               @Param("password") String password);
}
